/*
 * Copyright (c) 2015 elion. All Rights Reserved.
 */
package com.guoyu.project.dao;

import com.guoyu.project.model.BanIp;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * banner信息,数据访问类BannerDao
 *
 * @author: xblibo Sat Jun 27 14:00:13 CST 2015
 * @version 1.0
 */
@Repository
public interface BanIpDao {

    /**
     * 保存BanIp实体
     *
     * @param banIp
     */
    public void save(BanIp banIp);

    /**
     * 更新BanIp实体
     *
     * @param banIp
     */
    public void update(BanIp banIp);

    /**
     * 删除banIp实体
     *
     * @param banIpId
     */
    public void deleteById(int banIpId);

    /**
     * 根据id获取banIp实体
     *
     * @param banIpId
     * @return
     */
    public BanIp queryById(int banIpId);

    /**
     * 根据条件获取banIp记录总数
     *
     * @param params
     * @return
     */
    public int queryBanIpCount(Map<String, Object> params);

    /**
     * 根据条件获取分页查询BanIp记录
     *
     * @param params
     * @return
     */
    public List<BanIp> queryBanIps(Map<String, Object> params);

}